<?php
/* @var $this SolutionController */

$this->breadcrumbs = array(
    'Solution',
);
$this->pageTitle = $model->solution->name.' - '.$model->title;
$solutions = Solution::model()->findAll();
?>
<div class="row light-gray">
    <div class="row-content pageTitle ">
        <ul>
            <li><a href="<?echo Yii::app()->request->baseUrl?>/">Home page</a> &gt;</li>
            <li>Solutions</li>
        </ul>
        <h1>
            <? echo $model->solution->name;?></h1>

    </div>
</div>
<div class="row light-gray">
    <div class="row-content simple-page">
        <div class="container-dx">
            <a class="hidden-element btnShowMenu" href="#1" title="Navigation" style="display: none;">
                Navigation</a>
            <ul class="menu-content" style="">
                <?php 
                    foreach($solutions as $solution)
                    {?>
                    <li><a href="<? echo $this->createUrl('detail', array('id'=>$solution->details[0]->id))?>" ><span><? echo $solution->name ; ?></span></a>
                        <ul>
                        <?
                            foreach($solution->details as $detail)
                            {?>
                            <li><a href="<? echo $this->createUrl('detail',array('id'=>$detail->id)) ?>" <? echo ($detail->id==$this->pageActive)?'class="current"':'' ?>><span><? echo $detail->title ?></span></a></li>

                            <?}
                        ?>
                        </ul>
                    </li>
                    <?}?>
            </ul>
        </div>
        <div class="container-sx">
            <div class="text-content">
                <? echo CHtml::encode($model->content); ?>
            </div>
        </div>
    </div>
</div>
